setVisibility

open fun setVisibility(visibility: Int)(source)

When visibility is set to VISIBLE or INVISIBLE, inflate is invoked and this StubbedView is replaced in its parent by the inflated layout resource. After that calls to this function are passed through to the inflated view.

Parameters

visibility

One of VISIBLE, INVISIBLE, or GONE.

See also